package commons.conf;


public interface ResourceDomainField {

	String getName();

	/**
	 * db column name
	 * @return
	 */
	String getId();

	/**
	 * XML
	 * @return
	 */
	String getType();
	
	
	String getJavaType();
	
	/**
	 * import use
	 * @return
	 */
	String getJavaTypePkg();
	
	/**
	 * template use
	 * @return
	 */
	String getJavaTypeSimple();
	
	void setJavaType(String javaType);

	boolean isNotNull();

	boolean isUpdate();//?

	boolean isInsert();//?

	int getLength();
	
	int getScale();//精度

	boolean isUnique();
	
	boolean isForeign();

	String getForeignRefDomainName();
	
	String getForeignRefDomainFieldName();
	
	String getForeignRef();
	
	boolean isPk(); 
}
